-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#1966] Add cypress test for merged groups contribution bars #1970
[#1966] Add cypress test for merged groups contribution bars #1970
Conversation
c2d2eeb
to
1141240
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work on this @MarcusTXK! The test cases look good overall but I just had a question regarding the hardcoding aspect of it.
I have updated the cypress test to include a non-hardcoded version. It now stores the widths and the number of bars, refreshes, and then checks if there are the same number of contribution bars and if they are the same width. However, I left a test checking if the width and the number of contribution bars are as expected, as I realized that there is currently no test for the contribution bars and I think it would be good to be able to test that the calculation is correct. However, this does require a slight hardcoding. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes, the tests LGTM! Just thought it would be better to include a small comment about the assumption regarding the hardcoded values, as in other similar test cases: https://github.com/reposense/RepoSense/blob/master/frontend/cypress/tests/zoomView/zoomView_selectFileTypes.cy.js#L52
Co-authored-by: David Ong <45852430+vvidday@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
8747a2c
to
461e1d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. More testings are always good
The following links are for previewing this pull request:
|
Fixes #1959
Proposed commit message
Other information
The cypress test checks if the widths of
summary-chart__contrib--bar
are 100%, 100% and 50%.Note: This should not be merged before #1960, as the cypress test will fail until the bug fix is merged in, below is the current
summary-chart__contrib--bar
due to the bug on reload: